package com.onLineCar.system.feign;

import com.onLineCar.common.core.domain.Result;

import com.onLineCar.system.domain.Wallet;
import com.onLineCar.system.feign.impl.DriverDataImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author : 段敏强
 * @className : DriverData
 * @description : 描述说明该类的功能
 * @createTime : 2023/12/29 16:57
 */
@FeignClient(name = "onLineCar-driver" ,fallback = DriverDataImpl.class)
public interface DriverData {


    /**
     * 初始化钱包添加
     * @param wallet
     * @return
     */
    @PostMapping("/driver/insertWallet")
    public Result<Wallet> insertWallet(@RequestBody Wallet wallet);

}
